/**
 * 通知公告管理Resource
 */
var ctx, headUrl;

function setResourceCtx(ctx) {
	this.ctx = ctx;
	this.headUrl = ctx +"/announcement/";
}

//根据关键字查询公告信息（公告中心）	
function getAnncCenterBySearchKey(pageNo,pageSize,anncName,anncType,beginTime,endTime,sendType){
	$.ajax({
        type : "GET",
        url : "mall/announcement/getAnncCenterBySearchKey",
        cache : false,
        dataType : 'json',
        data:{
        	pageNo: pageNo,
        	pageSize:pageSize,
        	anncName:anncName,
        	anncType:anncType,
        	beginTime:beginTime,
        	endTime:endTime,
        	sendType:sendType
        }
	});
}
		
//查询最新一条消息
function getLastSendMemberAnnc(){
	$.ajax({
        type : "GET",
        url : headUrl + "getLastSendMemberAnnc",
        cache : false,
        dataType : 'json',
        success : function(result) {
        	getLastSendMemberAnncResult(result);
        }
	});
}
	
